Particle-therapy using protons or carbon ions